package cn.practice.chat.entity;

import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 最近聊天的人
 * </p>
 *
 * @author zhuutao
 * @since 2022-10-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ChatList extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户
     */
    private Integer userId;

    /**
     * 聊天的人
     */
    private Integer chatUserId;

    /**
     * 1 单聊   2群聊
     */
    private Integer type;

    /**
     * 时间
     */
    private LocalDateTime gmtCreate;

    private Integer createUser;

    private LocalDateTime gmtModified;

    private Integer modifiedUser;

    /**
     * 0 未删除  1已删除
     */
    private Integer isDeleted;

    private String messageId;

    private Integer serialNo;
}
